home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5677 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: Copy with c
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DoGrEL.GrE@unx.sas.com>
  7. Date: Mon, 18 Mar 1996 12:44:45 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <660.6643T24T753@enterprise.net> <3149B305.586B@dmu.ac.uk>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <3149B305.586B@dmu.ac.uk>, Timothy Eves  <se1te@dmu.ac.uk> wrote:
  13. >Do mean using ANSI C or using the OS?
  14. >
  15. >The ANSI C method you would have to open the source and dest files and
  16. >do a byte by byte copy.
  17. >
  18. >Using the OS would be better as you could do a buffered copy using the
  19. >dos.library commands.
  20. >
  21. >i.e. Allocate a 1Kb buffer and read from the source and write to dest in
  22. >1k chunks.
  23.  
  24. Huh?  Why can't you do a buffered copy with ANSI fopen/fread/fwrite?
  25.  
  26. -- 
  27.   *****     
  28.  *|_o_o|\\     Doug Walker   walker@unx.sas.com  
  29.  *|. o.| ||                
  30.   | o  |//     Any opinions are mine, not those of SAS Institute, Inc.
  31.   ====== 
  32.